<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<style>
<!--
.boxQr {
	height: 35px;
}

.boxInQr {
	height: 30px;
}
-->
</style>
<!-- 分页显示演示开始 -->
<form id="listForm" class="well form-search" action="${ctx}/adoms/qrGoodsCode/list" method="get">
	<input type="hidden" name="pageNo" id="pageNo" value="${pageData.pagination.pageNo}" />
	<input type="hidden" name="fieldName" id="fieldName" value="${pageData.compositor.fieldName}" />
	<input type="hidden" name="compositorType" id="compositorType" value="${pageData.compositor.compositorType}" />
	<table class="table table-striped table-bordered table-condensed">
		<tr align="center">
			<th>
				流水码|积分码
				<y:search fieldType="S" fieldList="wCode,iCode" matchType="LIKE" className="input-medium search-query" />
				<button class="btn btn-small" onclick="search()" type="button">
					<i class="icon-search"></i>
					搜索
				</button>
			</th>
		</tr>
	</table>
</form>
<table class="table table-striped table-bordered table-condensed">
	<thead>
		<tr>
			<th class="span1">#</th>
			<th class="span2">
				<a href="javascript:sort('innerNum')">内部编号</a>
			</th>
			<th class="span2">
				<a href="javascript:sort('box')">所属箱码</a>
			</th>
			<th align="center" class="span2">
				<a href="javascript:sort('wCode')">流水码</a>
			</th>
			<th align="center" class="span2">
				<a href="javascript:sort('qrCode')">二维码</a>
			</th>
			<th align="center" class="span2">
				<a href="javascript:sort('iCode')">积分码</a>
			</th>
			<th class="span1" align="center">
				<a href="javascript:sort('state')">状态</a>
			</th>
			<th class="span2" align="center">
				<a href="javascript:sort('insertTime')">创建时间</a>
			</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="entity" items="${pageData.result}" varStatus="index">
			<tr <c:if test="${!entity.visible}">bgcolor="#AFEEEE"</c:if>>
				<td>${index.index + 1}</td>
				<td>${entity.innerNum}</td>
				<td>${entity.box.innerNum}</td>
				<td align="center">${entity.wCode}</td>
				<td align="center">${entity.qrCode}</td>
				<td align="center">${entity.iCode}</td>
				<td align="center">${entity.state}</td>
				<td align="center">
					<fmt:formatDate value="${entity.insertTime}" pattern="yyyy-MM-dd HH:mm:ss" />
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<%@ include file="/WEB-INF/jsp/commons/pager.jsp"%>